package com.chuangjiangx.member.basic.ddd.domain.model;

import com.chuangjiangx.dddbase.Entity;
import com.chuangjiangx.member.basic.ddd.domain.model.WxAppletTokenId;
import com.chuangjiangx.member.basic.ddd.domain.model.MerchantId;
import lombok.Data;

/**
 * 微信应用Token实体
 *
 * @author 马文韬
 * @version 1.0
 * @date: 2018/9/15
 */
@Data
public class WxAppletToken extends Entity<WxAppletTokenId> {

    /**
     * 商户ID
     */
    private MerchantId merchantId;

    /**
     * 微信的app id
     */
    private String authorizerAppid;

    /**
     * 微信的app secret
     */
    private String authorizerSecret;

    /**
     * 小程序支付开关
     */
    private Integer paySwitch;

    public WxAppletToken(MerchantId merchantId, String authorizerAppid, String authorizerSecret, Integer paySwitch) {
        this.merchantId = merchantId;
        this.authorizerAppid = authorizerAppid;
        this.authorizerSecret = authorizerSecret;
        this.paySwitch = paySwitch;
    }

}
